while (my_money < cost_of_house)
work_more
end while
buy_house
Problem solving sequence:
1.Algorithm
2.Pseudo-code
3.Flowchat
4.C/C++ code
Julien is buying a house. If Julien wanted to buy the house without taking a loan from the bank, he would have to wait until he had enough money to buy the house.
Loop (while)
Example (Step 2)
Now there is one control statement that is inside of another control statement. This is known as nesting.